import request from '@/utils/request' // 引入已经封装好的axios 和 拦截器

export default{
  // 生成统计数据
  createStaByDay(day) {
    return request({
      url: 'http://localhost:8008/staservice/daily/createStatisticsByDay/' + day,
      method: 'post'
    })
  },
  // 图表显示
  getShowData(searchObj) {
    return request({
      url: `http://localhost:8008/staservice/daily/showData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
      method: 'get'
    })
  }

}
